
<section class="common-items ver-phone">
<div class="common-item"> <span class="item-label ver-phone-tit">手机号：</span>
					<div class="item-content">
{if ini('member.contact.keep')}					
<input type="tel" name="phone" id="sms_phone" value="{~user()->get('phone')}" style="border: none;background: none;box-shadow: none;height:24px" type="tel" size="60" placeholder="请输入电话号码" class="zhaoinput">
{else}
<input type="tel" name="phone" id="sms_phone" value="{~user()->get('phone')}" style="border: none;background: none;box-shadow: none;height:24px" type="tel" size="60" placeholder="请输入电话号码" class="zhaoinput">
{/if}
</div>
				</div>	

</section>

<script type="text/javascript">
//$(document).ready(function(){
$.hook.add('checkout_submit', function(){
var phone = $('#sms_phone').val();
if (phone == '' || phone == undefined || isNaN(phone) || phone.length != 11)
{
$('#sms_phone').tipTip({
content:"请输入有效的手机号！",
keepAlive:true,
activation:"focus",
defaultPosition:"top",
edgeOffset:8,
maxWidth:"300px"
});
$('#sms_phone').focus();
df_allow_to_submit('sms.inputer', false);
}
else
{
checkout_field_append('phone', phone);
df_allow_to_submit('sms.inputer', true);
}
});
//});
</script>
